﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace AtomPuzzleSolver.Model
{
    public enum CellState
    { 
        Inactive,
        Active
    }

    [Serializable]
    public class HexagonalCell
    {
        private CellState _State;

        public CellState State
        {
            get { return _State; }
            set
            {
                _State = value;
                if (_State == CellState.Active)
                {
                    Color = Color.Gray;
                }
            }
        }
        public Point Coordinates { get; set; }
        public Color Color { get; set; }

        public HexagonalCell(int x, int y)
        {
            State = CellState.Inactive;
            Coordinates = new Point(x, y);
            Color = Color.Black;
        }

        public HexagonalCell(int x, int y, CellState state, Color color)
        {
            State = state;
            Coordinates = new Point(x, y);
            Color = color;
        }
    }
}
